<div class="alert alert-success"><span class="glyphicon glyphicon-info-sign"></span> 下面地址为渠道推广地址，可以复制到其它地方使用。</div>

<form action="" class="form-horizontal" role="form">
  
  <div class="form-group">
    <label class="col-sm-2 control-label">首页地址</label>
    <div class="col-sm-8">
      <input type="text" readonly="readonly" id="homeUrl" class="form-control" value="{$source.sourceLink.homeUrl}" datatype="*"/>
      <a href="javascript:void(0)" id="copyHomeUrl">复制URL</a>
    </div>
  </div>
  
  <div class="form-group">
    <label class="col-sm-2 control-label">试用页面地址</label>
    <div class="col-sm-8">
      <input type="text" readonly="readonly" id="tryUrl" class="form-control" value="{$source.sourceLink.tryUrl}" datatype="*"/>
      <a href="javascript:void(0)" id="copyTryUrl">复制URL</a>
    </div>
  </div>
  
</form>

<script type="text/javascript" src="__PUBLIC__/Style/Common/js/ZeroClipboard.js"></script>

<script type="text/javascript">
  $().copyPaste({
    text: $("#homeUrl").val(),
    id: "copyHomeUrl"
  });
  $().copyPaste({
    text: $("#tryUrl").val(),
    id: "copyTryUrl"
  });
</script>
